function sendRequest() {
  fetch('http://127.0.0.1/api/get?name=张智琦&age=18', { method: 'GET' })
    .then(res => res.text())
    .then(data => {
      console.log(data)
    })
    .catch(err => {
      console.log(err)
    })
}
